﻿using System;
using System.ComponentModel;

namespace Skyper.ViewModel {
	public abstract class BaseViewModel : INotifyPropertyChanged {
		#region Protected
		protected void OnPropertyChanged(String propertyName) {
			if (String.IsNullOrEmpty(propertyName)) {
				return;
			}
			if (this.PropertyChanged == null) {
				return;
			}
			this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
		}
		#endregion
		#region Events
		public event PropertyChangedEventHandler PropertyChanged;
		#endregion
	}
}
